echo Edit Makefile.in and bring in /tmp/dep
$(WEB)/htmldoc-$(DOCVERSION)/readme.html: FORCE
+ mkdir -p $(WEB)/htmldoc-$(DOCVERSION)
perl xmldoc/makedoc
xmlwf xmldoc/readme.xml #check for well-formedness
xmllint --noout --valid xmldoc/readme.xml #validate
waypt_add(wpt_tmp);
GPS_Way_Del(&way[i]);
}
+ xfree(way);
}
static
if (GPS_Command_Pvt_Get(&pvt_fd, &pvt)) {
pvt2wpt(pvt, wpt);
+ GPS_Pvt_Del(&pvt);
+
wpt->shortname = xstrdup("Position");
if (gps_errno && posn_status) {
fatal(MYNAME ": Fatal error reading position.\n");
}
+ waypt_free(wpt);
GPS_Pvt_Del(&pvt);
return NULL;
break;
}
}
+
+ GPS_Packet_Del(&tra);
+ GPS_Packet_Del(&rec);
return 0;
}
GPS_PPacket tra;
GPS_PPacket rec;
-
if(!(tra = GPS_Packet_New()) || !(rec = GPS_Packet_New()))
return MEMORY_ERROR;
- if(!GPS_Packet_Read(*fd, &rec))
+ if(!GPS_Packet_Read(*fd, &rec)) {
+ GPS_Packet_Del(&rec);
+ GPS_Packet_Del(&tra);
return gps_errno;
+ }
- if(!GPS_Send_Ack(*fd, &tra, &rec))
+ if(!GPS_Send_Ack(*fd, &tra, &rec)) {
+ GPS_Packet_Del(&rec);
+ GPS_Packet_Del(&tra);
return gps_errno;
+ }
if (rec->type != LINK_ID[gps_link_type].Pid_Pvt_Data) {
+ GPS_Packet_Del(&rec);
+ GPS_Packet_Del(&tra);
return 0;
}
break;
default:
GPS_Error("A800_GET: Unknown pvt protocol");
+ GPS_Packet_Del(&rec);
+ GPS_Packet_Del(&tra);
return PROTOCOL_ERROR;
}
if (udev) {
usb_release_interface(udev, 0);
usb_close(udev);
+ xfree(dh);
udev = NULL;
}
return 0;
* the file to be missing. Windows readers will simply
* have to retry on this case.
*/
- unlink(posnfilename);
+ _unlink(posnfilename);
#endif
rename(posnfilenametmp, posnfilename);
xfree(posnfilenametmp);
while (1) {
posn_status status;
- waypoint *wpt = ivecs->position_ops.rd_position(&status);
+
status.request_terminate = 0;
+ waypoint *wpt = ivecs->position_ops.rd_position(&status);
if (status.request_terminate) {
if (wpt) {